package com.hfmall.service;

import com.github.pagehelper.PageInfo;
import com.hfmall.entity.HfOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hfmall.entity.HfOrderCount;
import com.hfmall.entity.HfUser;
import com.hfmall.entity.PageBean;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
public interface IHfOrderService extends IService<HfOrder> {

    HfOrderCount getCount(int userId);

    List<HfOrder> list(HfOrder order);

    PageInfo<HfOrder> getPages(Integer current, int userId, String statusNo, Integer size);

    HfOrder getOne(int id);

    List<HfOrder>getByCondition(HfOrder order);
    void updateByID(HfOrder order);
    List<HfOrder> selectByTime(String startTime, String endTime);
    List<HfOrder> selectByStatus(int Status);
    public PageBean<HfOrder> getB(int currPage,HfOrder order);
}
